package initialize

import (
	"gorm.io/driver/mysql"
	"gorm.io/gorm"
	"im/global"
)

func InitMySQL() {
	dsn := "root:root@tcp(127.0.0.1:3306)/weekthree?charset=utf8mb4&parseTime=True&loc=Local"
	global.Db, _ = gorm.Open(mysql.Open(dsn), &gorm.Config{})
}
